home *** CD-ROM | disk | FTP | other *** search
/ J-Mac Electronics & Home Comics / J-Mac Electronics & Home Comics.iso / mac / J-MAC / G38F / MAC_BAR.Dxr / 00016.ls < prev    next >
Encoding:
Text File  |  1998-01-22  |  999 b   |  34 lines

  1. on mouseDown
  2.   global mcheck, countcast, h, maxpage, castno, moveflg, cntpage, left_p, right_p
  3.   if moveflg = 1 then
  4.     exit
  5.   end if
  6.   puppetSprite(clickOn(), 1)
  7.   set h to the locH of sprite clickOn() - the mouseH
  8.   set the cursor of sprite 19 to [3, 40]
  9.   repeat while the stillDown
  10.     set the locH of sprite clickOn() to constrainH(1, the mouseH + h)
  11.     set mcheck to the locH of sprite clickOn()
  12.     if mcheck < left_p then
  13.       set the locH of sprite clickOn() to constrainH(1, left_p)
  14.       set mcheck to left_p
  15.     end if
  16.     if mcheck > right_p then
  17.       set the locH of sprite clickOn() to constrainH(1, right_p)
  18.       set mcheck to right_p
  19.     end if
  20.     countcast()
  21.   end repeat
  22.   set the cursor of sprite 19 to [2, 39]
  23.   set the memberNum of sprite countcast to castno + 49
  24.   set the rect of sprite countcast to rect(mcheck - 27, 7, mcheck, 25)
  25.   updateStage()
  26.   if castno = cntpage then
  27.     exit
  28.   end if
  29.   tell the stage
  30.     set the soundEnabled to 0
  31.   end tell
  32.   jumpjump()
  33. end
  34.